import React from 'react';
const warningFunc: any = (...args: any) => {
  console.warn('--TransferBoxContext function no initial --');
};

export interface TransferBoxContextParams {
  onDeletInsertItem: (
    insertItem: { id: number; text: string },
    targetParentName: 'left' | 'right',
  ) => void;
  store?: any;
}

const TransferBoxContext = React.createContext<TransferBoxContextParams>({
  onDeletInsertItem: warningFunc,
});

export default TransferBoxContext;
